Updating instance_test.go shared library reference
This commit is contained in:
parent
f66b27734f
commit
58ad6ca276
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user