answerer/clients/aiClient_test.go

18 lines
377 B
Go
Raw Permalink Normal View History

package clients
import (
"fmt"
"testing"
)
func Test_AiClient(t *testing.T) {
aiClient := NewAiClient("http://35.206.94.7:80/api/engine/generate_question_by_answer/")
for i := 0; i < 10; i++ {
question, err := aiClient.SendAnswerer(false, "type", "Дартвейдер был хорошим.", "1234")
if err != nil {
t.Error(err)
}
fmt.Println(question)
}
}