Skip to content

Commit

Permalink
Fixing flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
caiosba committed Aug 27, 2024
1 parent 32bd426 commit 9f4e35e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/controllers/graphql_controller_11_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ def teardown
post :create, params: { query: query }
assert_response :success
response = JSON.parse(@response.body)['data']['me']
data = response['accessible_teams']['edges'].collect{ |edge| edge['node']['dbid'] }.sort
data = response['accessible_teams']['edges']
assert_equal 2, data.size
assert_equal team1.id, data[0]
assert_equal team2.id, data[1]
assert_equal team1.id, data[0]['node']['dbid']
assert_equal team2.id, data[1]['node']['dbid']
assert_equal 2, response['accessible_teams_count']
end

Expand Down

0 comments on commit 9f4e35e

Please sign in to comment.