Skip to content

Commit 1cafcf4

Browse files
committed
Try waiting after not before
1 parent 063a1fb commit 1cafcf4

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/test/java/io/tiledb/java/api/ArrayTest.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,17 @@ public void testArrayOpenAt() throws Exception {
206206

207207
long[] array_a = new long[] {1, 2, 3, 6};
208208
insertArbitraryValues(new NativeArray(ctx, array_a, Long.class));
209-
long ts_a = System.currentTimeMillis();
210-
211209
Thread.sleep(2000);
210+
long ts_a = System.currentTimeMillis();
212211

213212
long[] array_b = new long[] {1, 1, 1, 1};
214213
insertArbitraryValues(new NativeArray(ctx, array_b, Long.class));
215-
long ts_b = System.currentTimeMillis();
216-
217214
Thread.sleep(2000);
215+
long ts_b = System.currentTimeMillis();
218216

219217
long[] array_c = new long[] {0, 0, 0, 0};
220218
insertArbitraryValues(new NativeArray(ctx, array_c, Long.class));
219+
Thread.sleep(2000);
221220
long ts_c = System.currentTimeMillis();
222221

223222
Assert.assertArrayEquals(array_a, readArrayAt(BigInteger.valueOf(ts_a)));
@@ -231,18 +230,17 @@ public void testArrayOpenAtEncrypted() throws Exception {
231230

232231
long[] array_a = new long[] {1, 2, 3, 6};
233232
insertArbitraryValuesEncrypted(new NativeArray(ctx, array_a, Long.class));
234-
long ts_a = System.currentTimeMillis();
235-
236233
Thread.sleep(2000);
234+
long ts_a = System.currentTimeMillis();
237235

238236
long[] array_b = new long[] {1, 1, 1, 1};
239237
insertArbitraryValuesEncrypted(new NativeArray(ctx, array_b, Long.class));
240-
long ts_b = System.currentTimeMillis();
241-
242238
Thread.sleep(2000);
239+
long ts_b = System.currentTimeMillis();
243240

244241
long[] array_c = new long[] {0, 0, 0, 0};
245242
insertArbitraryValuesEncrypted(new NativeArray(ctx, array_c, Long.class));
243+
Thread.sleep(2000);
246244
long ts_c = System.currentTimeMillis();
247245

248246
Assert.assertArrayEquals(array_a, readArrayAtEncrypted(BigInteger.valueOf(ts_a)));

0 commit comments

Comments
 (0)