awesome-patterns/concurrency/barrier/main_test.go

16 lines
487 B
Go

package main
import "testing"
func TestBarrier(t *testing.T) {
t.Run("Correct endpoints", func(t *testing.T) {
endpoints := []string{"http://httpbin.org/headers", "http://httpbin.org/User-Agent"}
})
t.Run("One endpoint incorrect", func(t *testing.T) {
endpoints := []string{"http://malformed-url", "http://httpbin.org/User-Agent"}
})
t.Run("Very Short Timeout", func(t *testing.T) {
endpoints := []string{"http://httpbin.org/headers", "http://httpbin.org/User-Agent"}
})
}