Skip to content

Commit

Permalink
Fix for outOfRange test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
soklakov committed Nov 27, 2018
1 parent 3467237 commit 6268b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/testsuite/x/devapi/CollectionFindTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void outOfRange() {
}
try {
this.collection.add("{\"_id\": \"1\"}").execute();
DocResult docs = this.collection.find().fields(expr("{'X':1-cast(pow(2,100) as signed)}")).execute();
DocResult docs = this.collection.find().fields(expr("{'X':cast(pow(2,63) as signed)+1}")).execute();
docs.next(); // we are getting valid data from xplugin before the error, need this call to force the error
fail("Statement should raise an error");
} catch (XProtocolError err) {
Expand Down

0 comments on commit 6268b4b

Please sign in to comment.