Skip to content

Commit fd3741f

Browse files
authored
chore: upgrade api-testing to the latest dev (#10)
* chore: upgrade api-testing to the latest dev * fix the unit tests --------- Co-authored-by: rick <[email protected]>
1 parent baf7d49 commit fd3741f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cmd/root_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
MIT License
44
5-
Copyright (c) 2023 API Testing Authors.
5+
Copyright (c) 2023-2024 API Testing Authors.
66
77
Permission is hereby granted, free of charge, to any person obtaining a copy
88
of this software and associated documentation files (the "Software"), to deal
@@ -53,6 +53,6 @@ func TestRootCommand(t *testing.T) {
5353

5454
c.SetArgs([]string{"--port", "0"})
5555
err := c.Execute()
56-
assert.NoError(t, err)
56+
assert.Error(t, err)
5757
})
5858
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.2
55
toolchain go1.22.4
66

77
require (
8-
github.com/linuxsuren/api-testing v0.0.18-0.20240710135821-b23459a5c286
8+
github.com/linuxsuren/api-testing v0.0.18-0.20240712013124-33c89be15c83
99
github.com/spf13/cobra v1.8.0
1010
github.com/stretchr/testify v1.9.0
1111
gorm.io/driver/mysql v1.5.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
9696
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
9797
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
9898
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
99-
github.com/linuxsuren/api-testing v0.0.18-0.20240710135821-b23459a5c286 h1:K0InsL+ZzZx1+dJU5HAtvtxUmB9XVk1ZiR0iG2nwZJY=
100-
github.com/linuxsuren/api-testing v0.0.18-0.20240710135821-b23459a5c286/go.mod h1:8G3GZtQmSUHyqA/gZlSdFaDIveHQYbFInTibD7g3hMs=
99+
github.com/linuxsuren/api-testing v0.0.18-0.20240712013124-33c89be15c83 h1:NUGWAWp6fMc9qFERsP0TdJE6lTItEDI6F6v7tDkHNx8=
100+
github.com/linuxsuren/api-testing v0.0.18-0.20240712013124-33c89be15c83/go.mod h1:8G3GZtQmSUHyqA/gZlSdFaDIveHQYbFInTibD7g3hMs=
101101
github.com/linuxsuren/go-fake-runtime v0.0.4 h1:y+tvBuw6MKTCav8Bo5HWwaXhBx1Z//VAvqI3gpOWqvw=
102102
github.com/linuxsuren/go-fake-runtime v0.0.4/go.mod h1:zmh6J78hSnWZo68faMA2eKOdaEp8eFbERHi3ZB9xHCQ=
103103
github.com/linuxsuren/unstructured v0.0.1 h1:ilUA8MUYbR6l9ebo/YPV2bKqlf62bzQursDSE+j00iU=

0 commit comments

Comments
 (0)