func _testSendChain(server *machinery.Server, t *testing.T) { tasks := _getTasks() chain := machinery.NewChain(&tasks[1], &tasks[2], &tasks[3]) chainAsyncResult, err := server.SendChain(chain) if err != nil { t.Error(err) } result, err := chainAsyncResult.Get() if err != nil { t.Error(err) } if result.Interface() != int64(60) { t.Errorf( "result = %v(%v), want int64(60)", result.Type().String(), result.Interface(), ) } }