@@ -3,7 +3,7 @@ package fxgrpcserver_test
33import (
44 "testing"
55
6- "github.com/ankorstore/yokai/fxhealthcheck "
6+ "github.com/ankorstore/yokai/fxgrpcserver "
77 "github.com/ankorstore/yokai/fxhealthcheck/testdata/probes"
88 "github.com/stretchr/testify/assert"
99)
@@ -15,10 +15,11 @@ func TestGetType(t *testing.T) {
1515 target any
1616 expected string
1717 }{
18+ {nil , "" },
1819 {123 , "int" },
1920 {"test" , "string" },
20- {probes .NewSuccessProbe (), "* probes.SuccessProbe" },
21- {probes .NewFailureProbe (), "* probes.FailureProbe" },
21+ {probes .NewSuccessProbe (), "github.com/ankorstore/yokai/fxhealthcheck/testdata/ probes.SuccessProbe" },
22+ {probes .NewFailureProbe (), "github.com/ankorstore/yokai/fxhealthcheck/testdata/ probes.FailureProbe" },
2223 }
2324
2425 for _ , tt := range tests {
@@ -27,7 +28,7 @@ func TestGetType(t *testing.T) {
2728 t .Run (tt .expected , func (t * testing.T ) {
2829 t .Parallel ()
2930
30- got := fxhealthcheck .GetType (tt .target )
31+ got := fxgrpcserver .GetType (tt .target )
3132 assert .Equal (t , tt .expected , got )
3233 })
3334 }
@@ -40,6 +41,7 @@ func TestGetReturnType(t *testing.T) {
4041 target any
4142 expected string
4243 }{
44+ {nil , "" },
4345 {func () string { return "test" }, "string" },
4446 {func () int { return 123 }, "int" },
4547 }
@@ -49,7 +51,7 @@ func TestGetReturnType(t *testing.T) {
4951 t .Run (tt .expected , func (t * testing.T ) {
5052 t .Parallel ()
5153
52- got := fxhealthcheck .GetReturnType (tt .target )
54+ got := fxgrpcserver .GetReturnType (tt .target )
5355 assert .Equal (t , tt .expected , got )
5456 })
5557 }
0 commit comments