From 26ba6dfea572cddc1707541ff7a12791564a55b6 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Mon, 18 Mar 2024 19:59:32 -0400 Subject: [PATCH] Fix WASM build Constant used by WASM+Go tests was in Go only file --- agent_test.go | 2 -- candidate_test.go | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent_test.go b/agent_test.go index 8913b2b..f5ca54e 100644 --- a/agent_test.go +++ b/agent_test.go @@ -24,8 +24,6 @@ import ( "github.com/stretchr/testify/require" ) -const localhostIPStr = "127.0.0.1" - type BadAddr struct{} func (ba *BadAddr) Network() string { diff --git a/candidate_test.go b/candidate_test.go index 1cab463..5078154 100644 --- a/candidate_test.go +++ b/candidate_test.go @@ -13,6 +13,8 @@ import ( "github.com/stretchr/testify/require" ) +const localhostIPStr = "127.0.0.1" + func TestCandidateTypePreference(t *testing.T) { r := require.New(t)