mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-13 16:22:04 +00:00
fix(multiplayer): bound adapter HTTP calls
This commit is contained in:
@@ -13,6 +13,16 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestSupervisorDefaultHTTPClientHasRequestDeadline(t *testing.T) {
|
||||
supervisor, err := New(Config{Command: []string{"game-server"}})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if supervisor.client == http.DefaultClient || supervisor.client.Timeout != DefaultHTTPTimeout || supervisor.client.Timeout <= 0 {
|
||||
t.Fatalf("default HTTP client timeout = %s", supervisor.client.Timeout)
|
||||
}
|
||||
}
|
||||
|
||||
func TestWithAllocatedConfigOverridesAuthoritativeChildFlags(t *testing.T) {
|
||||
command := []string{
|
||||
"game-server", "--", "--allocated-mode", "--match-id=stale-match",
|
||||
|
||||
Reference in New Issue
Block a user