Updating instance_test.go shared library reference
This commit is contained in:
parent
f66b27734f
commit
58ad6ca276
@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"gitlab.com/khanzf/fedilogue/shared"
|
||||||
"reflect"
|
"reflect"
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
@ -37,8 +38,8 @@ func TestGetRunnerNonExist(t *testing.T) {
|
|||||||
want_o := RunningInstance{}
|
want_o := RunningInstance{}
|
||||||
want_o.client = BuildClient("some-non-existent-domain.tld")
|
want_o.client = BuildClient("some-non-existent-domain.tld")
|
||||||
want_o.Status = KEEPALIVE
|
want_o.Status = KEEPALIVE
|
||||||
want_o.recentactivities = newUniqueFifo(10)
|
want_o.recentactivities = shared.NewUniqueFifo(10)
|
||||||
want_o.recentactors = newUniqueFifo(10)
|
want_o.recentactors = shared.NewUniqueFifo(10)
|
||||||
want_exists := false
|
want_exists := false
|
||||||
have_o, have_exists := GetRunner("some-non-existent-domain.tld")
|
have_o, have_exists := GetRunner("some-non-existent-domain.tld")
|
||||||
|
|
||||||
@ -59,8 +60,8 @@ func TestGetRunnerExists(t *testing.T) {
|
|||||||
want_o := RunningInstance{}
|
want_o := RunningInstance{}
|
||||||
want_o.client = BuildClient("some-non-existent-domain.tld")
|
want_o.client = BuildClient("some-non-existent-domain.tld")
|
||||||
want_o.Status = KEEPALIVE
|
want_o.Status = KEEPALIVE
|
||||||
want_o.recentactivities = newUniqueFifo(10)
|
want_o.recentactivities = shared.NewUniqueFifo(10)
|
||||||
want_o.recentactors = newUniqueFifo(10)
|
want_o.recentactors = shared.NewUniqueFifo(10)
|
||||||
runninginstances["some-non-existent-domain.tld"] = want_o
|
runninginstances["some-non-existent-domain.tld"] = want_o
|
||||||
|
|
||||||
want_exists := true
|
want_exists := true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user