INNER CODE UNIT · Go

i

ovh/utask · api/api_test.go:479

		if i == cnt/2 {
			midTask = *tsk
		}
		time.Sleep(time.Second / 5)
	}

	var tasks []*task.Task
	tester.AddCall("list tasks", http.MethodGet, "/task?page_size=20", "").
		Headers(regularHeaders).
		ResponseObject(&tasks).
		Checkers(
			iffy.ExpectListLength(20),
		)

	tester.Run()

	first := tasks[0]
	last := tasks[len(tasks)-1]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…