github.com/uvalib/orcid-access-ws@v0.0.0-20250612130209-7d062dbabf9d/orcidaccessws/tests/healthcheck_test.go (about) 1 package test 2 3 import ( 4 "github.com/uvalib/orcid-access-ws/orcidaccessws/client" 5 "net/http" 6 "testing" 7 ) 8 9 // 10 // healthcheck tests 11 // 12 13 func TestHealthCheck(t *testing.T) { 14 expected := http.StatusOK 15 status := client.HealthCheck(cfg.Endpoint) 16 if status != expected { 17 t.Fatalf("Expected %v, got %v\n", expected, status) 18 } 19 } 20 21 // 22 // end of file 23 //