Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1 from chrisbu/patch-1

Correct async testing
  • Loading branch information...
commit 03d060a54b6355a8103b4332483ce22500725e9b 2 parents 1b0369b + 4981ead
Travis Tidwell authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/dartminer.dart
4 test/dartminer.dart
View
@@ -7,7 +7,7 @@ void main() {
test('Test Mining', () {
// Get the work.
- getJSON('getwork.json').then((dynamic work) {
+ getJSON('getwork.json').then(expectAsync((dynamic work) {
// Create the miner.
Miner miner = new Miner(work);
@@ -21,6 +21,6 @@ void main() {
// Print the result.
print(result);
expect(result, '01000000378da709d01338204d85458bcd0f4751dfd688b56e94beab7e20ad920000000002aea838751547f70c0d12aa880ca185ad98136af5ad1f8220374c128577b60c8703064ef8ff071d352e9531800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280');
- });
+ }));
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.