Skip to content

Commit 35628ce

Browse files
committed
tbot readyz tests
1 parent 580803b commit 35628ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/tbot/readyz/readyz_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"encoding/json"
2323
"net/http"
2424
"net/http/httptest"
25+
"os"
2526
"testing"
2627

2728
"github.com/stretchr/testify/require"
@@ -59,6 +60,7 @@ func TestReadyz(t *testing.T) {
5960
"a": {Status: readyz.Initializing},
6061
"b": {Status: readyz.Initializing},
6162
},
63+
PID: os.Getpid(),
6264
},
6365
response,
6466
)
@@ -107,6 +109,7 @@ func TestReadyz(t *testing.T) {
107109
"a": {Status: readyz.Healthy},
108110
"b": {Status: readyz.Unhealthy, Reason: "database is down"},
109111
},
112+
PID: os.Getpid(),
110113
},
111114
response,
112115
)
@@ -133,6 +136,7 @@ func TestReadyz(t *testing.T) {
133136
"a": {Status: readyz.Healthy},
134137
"b": {Status: readyz.Healthy},
135138
},
139+
PID: os.Getpid(),
136140
},
137141
response,
138142
)

0 commit comments

Comments
 (0)