Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added fix for failing test when using AS non enterprise #365

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/src/com/aerospike/test/SuiteSync.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,14 @@
})
public class SuiteSync {
public static IAerospikeClient client = null;
public static Args args = null;

@BeforeClass
public static void init() {
Log.setCallback(null);

System.out.println("Begin AerospikeClient");
Args args = Args.Instance;
args = Args.Instance;

ClientPolicy policy = new ClientPolicy();
args.setClientPolicy(policy);
Expand Down
2 changes: 2 additions & 0 deletions test/src/com/aerospike/test/sync/TestSync.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import static org.junit.Assert.fail;

import com.aerospike.test.util.Args;
import org.junit.AfterClass;
import org.junit.BeforeClass;

Expand All @@ -30,6 +31,7 @@

public class TestSync extends TestBase {
protected static IAerospikeClient client = SuiteSync.client;
protected static Args args = SuiteSync.args;
private static boolean DestroyClient = false;

@BeforeClass
Expand Down
5 changes: 5 additions & 0 deletions test/src/com/aerospike/test/sync/basic/TestPutGet.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
*/
package com.aerospike.test.sync.basic;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import com.aerospike.test.SuiteSync;
import com.aerospike.test.util.Args;
import org.junit.Assume;
import org.junit.Test;

import com.aerospike.client.Bin;
Expand Down Expand Up @@ -85,6 +89,7 @@ public void putGetBool() {

@Test
public void putGetCompress() {
Assume.assumeThat(args.enterprise, is(true));
Key key = new Key(args.namespace, args.set, "pgc");
byte[] bytes = new byte[2000];

Expand Down