summaryrefslogtreecommitdiff
path: root/test/etap/072-cleanup.t
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2011-09-29 23:34:40 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2011-09-29 23:34:40 +0000
commit1285cd95c8fe351991218f886bbfe28d9a9a3b09 (patch)
treea62af53acc1fb9be4e943ab1935e6fa92889863f /test/etap/072-cleanup.t
parent89a5c28775f24f2706f443c76afa3edf9df78ce4 (diff)
Remove usage of http module from etap tests
This module is deprecated in OTP R15, which is going to be released by the end of this year. The etap tests now use ibrowse instead. This is a backport of revision 1177459 from trunk. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1177463 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/etap/072-cleanup.t')
-rwxr-xr-xtest/etap/072-cleanup.t8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/etap/072-cleanup.t b/test/etap/072-cleanup.t
index 61790bc6..6f97193d 100755
--- a/test/etap/072-cleanup.t
+++ b/test/etap/072-cleanup.t
@@ -41,7 +41,6 @@ main(_) ->
test() ->
{ok, _} = couch_server_sup:start_link(test_util:config_files()),
- ok = application:start(inets),
couch_server:delete(?TEST_DB, []),
timer:sleep(1000),
@@ -110,11 +109,8 @@ db_url() ->
binary_to_list(?TEST_DB).
query_view(DDoc, View) ->
- {ok, {{_, Code, _}, _Headers, _Body}} = http:request(
- get,
- {db_url() ++ "/_design/" ++ DDoc ++ "/_view/" ++ View, []},
- [],
- [{sync, true}]),
+ {ok, Code, _Headers, _Body} = test_util:request(
+ db_url() ++ "/_design/" ++ DDoc ++ "/_view/" ++ View, [], get),
etap:is(Code, 200, "Built view index for " ++ DDoc ++ "."),
ok.