mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-11-25 22:36:05 +03:00
16 lines
487 B
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"}
|
|
})
|
|
}
|