Fixing scope of test variables

This commit is contained in:
John Donaldson 2022-10-28 12:46:47 -07:00
parent 63d066c195
commit bfacbfeb11
1 changed files with 5 additions and 7 deletions

View File

@ -557,15 +557,13 @@ func TestStateTeamIDs(t *testing.T) {
// Check if an ID exists in an empty list
if teamIDExists, err := s.TeamIDExists(teamID1); err != nil {
t.Errorf("Received unexpected error %s", err)
if teamIDExists {
t.Errorf("Expected to receive false, since team ID list should be empty, but received true, instead")
}
}
if teamIDExists {
t.Errorf("Expected to receive false, since team ID list should be empty, but received true, instead")
}
if err != nil {
t.Errorf("")
}
// Add a team ID
if err := s.AddTeamID(teamID1); err != nil {