mirror of https://github.com/dirtbags/moth.git
Fixing scope of test variables
This commit is contained in:
parent
63d066c195
commit
bfacbfeb11
|
@ -557,15 +557,13 @@ func TestStateTeamIDs(t *testing.T) {
|
||||||
// Check if an ID exists in an empty list
|
// Check if an ID exists in an empty list
|
||||||
if teamIDExists, err := s.TeamIDExists(teamID1); err != nil {
|
if teamIDExists, err := s.TeamIDExists(teamID1); err != nil {
|
||||||
t.Errorf("Received unexpected error %s", err)
|
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
|
// Add a team ID
|
||||||
if err := s.AddTeamID(teamID1); err != nil {
|
if err := s.AddTeamID(teamID1); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue