Skip to content

Commit 36a81db

Browse files
committed
fix: fix test
1 parent 88e4822 commit 36a81db

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ require (
9898
gopkg.in/yaml.v3 v3.0.1 // indirect
9999
)
100100

101-
replace github.com/linuxsuren/api-testing => github.com/SamYSF/api-testing v0.0.0-20240913030350-eef572d3a842
101+
replace github.com/linuxsuren/api-testing => github.com/SamYSF/api-testing v0.0.0-20240913070731-63814573b192
102102

103103
//replace github.com/linuxsuren/api-testing => /home/ysf/project/api-testing

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0
55
github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
66
github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=
77
github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM=
8-
github.com/SamYSF/api-testing v0.0.0-20240913030350-eef572d3a842 h1:LBkbEAx3GFJNvdVU66ahvHwk4F7722kCEXyVw67MFtU=
9-
github.com/SamYSF/api-testing v0.0.0-20240913030350-eef572d3a842/go.mod h1:uu0hyEYSgdSju31EugGwIGE2I/uv7VYNM/6ODPKKD7I=
8+
github.com/SamYSF/api-testing v0.0.0-20240913070731-63814573b192 h1:hHFszkA9lWWQ0UmyE8/C8uXRP4hAyQHAXilVSg87e/w=
9+
github.com/SamYSF/api-testing v0.0.0-20240913070731-63814573b192/go.mod h1:uu0hyEYSgdSju31EugGwIGE2I/uv7VYNM/6ODPKKD7I=
1010
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ=
1111
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8=
1212
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=

pkg/server_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ func TestNewRemoteServer(t *testing.T) {
110110
})
111111

112112
t.Run("DeleteHistoryTestCase", func(t *testing.T) {
113-
_, err := remoteServer.DeleteHistoryTestCase(defaultCtx, nil)
113+
_, err := remoteServer.DeleteHistoryTestCase(defaultCtx, &server.HistoryTestCase{})
114114
assert.Error(t, err)
115115
})
116116

117117
t.Run("DeleteAllHistoryTestCase", func(t *testing.T) {
118-
_, err := remoteServer.DeleteAllHistoryTestCase(defaultCtx, nil)
118+
_, err := remoteServer.DeleteAllHistoryTestCase(defaultCtx, &server.HistoryTestCase{})
119119
assert.Error(t, err)
120120
})
121121

0 commit comments

Comments
 (0)