awesome-patterns/concurrency/barrier/main_test.go

16 lines
487 B
Go
Raw Normal View History

2018-01-08 15:30:16 +03:00
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"}
})
}