Permalink
Browse files

make sure we clean up after tests

  • Loading branch information...
1 parent 00d2d69 commit 819b087197017d2cd29f916d1271437c926c35ea Francisco Treacy committed Sep 26, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/http_client_test.coffee
@@ -54,9 +54,10 @@ LOAD test.api, HTTP_TEST_DATA, ->
assert.ok key.match(/^test/)
assert.ok name.match(/^Testing/)
- db.keys bucket, (err, keys) ->
- for key in keys then db.remove bucket, key, (err, resp, meta) ->
- assert.equal meta.statusCode, 204
+ for b in [bucket, 'riakjs_airlines', 'riakjs_airports', 'riakjs_flights']
+ db.keys b, (err, keys) ->
+ for key in keys then db.remove b, key, (err, resp, meta) ->
+ assert.equal meta.statusCode, 204
require('./core_riak_tests') test

0 comments on commit 819b087

Please sign in to comment.