From 58ad6ca2763edc5989582db2f2307d9b4753857a Mon Sep 17 00:00:00 2001 From: Farhan Khan Date: Wed, 29 Sep 2021 14:39:39 +0000 Subject: [PATCH] Updating instance_test.go shared library reference --- fedilogue/instance_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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