Skip to content

Commit

Permalink
Merge pull request #85 from outyua/master
Browse files Browse the repository at this point in the history
fix test import
  • Loading branch information
printfcoder authored Feb 19, 2021
2 parents 5b03e88 + b092828 commit bd9994c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/service/stack/stack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import (
"testing"
"time"

"github.com/stack-labs/stack-rpc"
"github.com/stack-labs/stack-rpc/registry"
"github.com/stack-labs/stack"
"github.com/stack-labs/stack/registry"
)

func TestServiceTTL(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
s := stack.NewService(
stack.Context(ctx),
stack.Name("stack.rpc.test.ttl"),
stack.Name("stack.test.ttl"),
stack.RegisterTTL(time.Second*3),
// much bigger than ttl
stack.RegisterInterval(time.Second*20),
Expand All @@ -23,7 +23,7 @@ func TestServiceTTL(t *testing.T) {
// same as ttl
time.Sleep(time.Second * 3)

svcs, err := s.Options().Registry.GetService("stack.rpc.test.ttl")
svcs, err := s.Options().Registry.GetService("stack.test.ttl")
if err != nil && err != registry.ErrNotFound {
t.Fatal(err)
}
Expand Down

0 comments on commit bd9994c

Please sign in to comment.