mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-13 22:15:47 +00:00
13 lines
313 B
Go
13 lines
313 B
Go
package cmd
|
|
|
|
import "testing"
|
|
|
|
func TestResolveGatewayBaseURLUsesGOCLAWServer(t *testing.T) {
|
|
t.Setenv("GOCLAW_SERVER", "http://127.0.0.1:19999/")
|
|
|
|
got := resolveGatewayBaseURL()
|
|
if got != "http://127.0.0.1:19999" {
|
|
t.Fatalf("resolveGatewayBaseURL()=%q, want GOCLAW_SERVER without trailing slash", got)
|
|
}
|
|
}
|