Skip to content

Commit

Permalink
sdk/java: make test less racy
Browse files Browse the repository at this point in the history
Update timestamp on query from seconds before to years before.

Closes [unavailable]
  • Loading branch information
boymanjor authored and iampogo committed Oct 23, 2016
1 parent f6d72a4 commit 5d81280
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/java/src/test/java/com/chain/integration/QueryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void testTransactionQuery() throws Exception {
new Transaction.QueryBuilder()
.setFilter("reference_data.test=$1")
.addFilterParameter(test)
.setEndTime(System.currentTimeMillis() - 10000L)
.setEndTime(System.currentTimeMillis() - 100000000000L)
.execute(client);
assertEquals(0, txs.list.size());

Expand Down Expand Up @@ -228,7 +228,7 @@ public void testBalanceQuery() throws Exception {
new Balance.QueryBuilder()
.setFilter("reference_data.test=$1")
.addFilterParameter(test)
.setTimestamp(System.currentTimeMillis() - 10000L)
.setTimestamp(System.currentTimeMillis() - 100000000000L)
.execute(client);
assertEquals(0, items.list.size());

Expand Down Expand Up @@ -287,7 +287,7 @@ public void testUnspentOutputQuery() throws Exception {
new UnspentOutput.QueryBuilder()
.setFilter("reference_data.test=$1")
.setFilterParameters(Arrays.asList(test))
.setTimestamp(System.currentTimeMillis() - 10000L)
.setTimestamp(System.currentTimeMillis() - 100000000000L)
.execute(client);
assertEquals(0, items.list.size());

Expand Down

0 comments on commit 5d81280

Please sign in to comment.