This commit is contained in:
Joseph Holley
2019-02-11 01:23:06 -05:00
2 changed files with 6 additions and 4 deletions

View File

@ -6,12 +6,14 @@ import (
"github.com/rafaeljusto/redigomock"
)
func TestCreate(*testing.T) {
pids := "test1 test2 test3"
func TestCreate(t *testing.T) {
pids := []string{"test1", "test2", " test3"}
ilid := "testil"
redisConn := redigomock.NewConn()
redisConn.GenericCommand("ZADD").Expect("ok")
err := Create(redisConn, ilid, pids)
if err != nil {
panic(err.Error())
t.Fatal(err)
}
}

View File

@ -194,7 +194,7 @@ func waitForResults(resultsChan chan frontend.Player, stream frontend.Frontend_G
break
}
log.Println("Error encountered")
log.Println("Error reading stream for GetAssignments(_) = _, %v", err)
log.Printf("Error reading stream for GetAssignments(_) = _, %v", err)
break
}
log.Println("Result recieved from Open Match!")