Skip to content

Commit

Permalink
Rebased from master with mock server fix; moved test case to client_t…
Browse files Browse the repository at this point in the history
…est execute group
  • Loading branch information
Anatoly Pulyaevskiy committed Feb 17, 2016
1 parent a4bef43 commit a04dd49
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 34 deletions.
13 changes: 13 additions & 0 deletions test/lib/client_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,19 @@ main({bool enableLogger : true}) {
})
);
});

test(
"it can handle execution of multiple queries scheduled synchronously",
() {
server.setReplayList(["select_v2.dump", "select_v2.dump"]);
var client = new cql.Client.fromHostList(
["${SERVER_HOST}:${SERVER_PORT}"],
poolConfig: new cql.PoolConfiguration(autoDiscoverNodes: false));
var f1 = client.execute(new cql.Query('SELECT * from test.type_test'));
var f2 = client.execute(new cql.Query('SELECT * from test.type_test'));

expect(Future.wait([f1, f2]), completes);
});
});

group("query:", () {
Expand Down
34 changes: 0 additions & 34 deletions test/lib/race_condition_test.dart

This file was deleted.

0 comments on commit a04dd49

Please sign in to comment.