diff --git a/fedilogue/instance_test.go b/fedilogue/instance_test.go index 474441c..69c0961 100644 --- a/fedilogue/instance_test.go +++ b/fedilogue/instance_test.go @@ -1,6 +1,7 @@ package main import ( + "gitlab.com/khanzf/fedilogue/shared" "reflect" "net/http" "testing" @@ -37,8 +38,8 @@ func TestGetRunnerNonExist(t *testing.T) { want_o := RunningInstance{} want_o.client = BuildClient("some-non-existent-domain.tld") want_o.Status = KEEPALIVE - want_o.recentactivities = newUniqueFifo(10) - want_o.recentactors = newUniqueFifo(10) + want_o.recentactivities = shared.NewUniqueFifo(10) + want_o.recentactors = shared.NewUniqueFifo(10) want_exists := false have_o, have_exists := GetRunner("some-non-existent-domain.tld") @@ -59,8 +60,8 @@ func TestGetRunnerExists(t *testing.T) { want_o := RunningInstance{} want_o.client = BuildClient("some-non-existent-domain.tld") want_o.Status = KEEPALIVE - want_o.recentactivities = newUniqueFifo(10) - want_o.recentactors = newUniqueFifo(10) + want_o.recentactivities = shared.NewUniqueFifo(10) + want_o.recentactors = shared.NewUniqueFifo(10) runninginstances["some-non-existent-domain.tld"] = want_o want_exists := true