Skip to content

Commit f1020ee

Browse files
author
tailor
committed
[project @ Store tests: loosen get_association tests so that it is only asserting that we are not returning deleted associations rather than testing that we return a particular association]
Ignore-this: a2514be4e99da76ca8c55a78bf10817a
1 parent 3df3125 commit f1020ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test_stores.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ def test_store
116116
_check_remove(server_url, assoc2.handle, false)
117117
_check_remove(server_url, assoc3.handle, true)
118118

119-
_check_retrieve(server_url, nil, assoc)
119+
ret_assoc = @store.get_association(server_url, nil)
120+
unexpected = [assoc2.handle, assoc3.handle]
121+
assert(ret_assoc.nil? || !unexpected.member?(ret_assoc.handle),
122+
ret_assoc)
123+
120124
_check_retrieve(server_url, assoc.handle, assoc)
121125
_check_retrieve(server_url, assoc2.handle, nil)
122126
_check_retrieve(server_url, assoc3.handle, nil)

0 commit comments

Comments
 (0)