diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-05-11 18:21:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-11 18:21:34 +0800 |
commit | 34eee25bd42d19287e3e33afd169cc979ab61f37 (patch) | |
tree | 8def3b2f224745e3fbc0adaec2f01d7f752c443d /integrations/version_test.go | |
parent | 1658cd04e9918109867f2745ddf760d260681878 (diff) | |
download | gitea-34eee25bd42d19287e3e33afd169cc979ab61f37.tar.gz gitea-34eee25bd42d19287e3e33afd169cc979ab61f37.zip |
Move sdk structs to modules/structs (#6905)
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
Diffstat (limited to 'integrations/version_test.go')
-rw-r--r-- | integrations/version_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/version_test.go b/integrations/version_test.go index 9a30bfb53b..eaba3e0859 100644 --- a/integrations/version_test.go +++ b/integrations/version_test.go @@ -9,7 +9,7 @@ import ( "testing" "code.gitea.io/gitea/modules/setting" - "code.gitea.io/sdk/gitea" + "code.gitea.io/gitea/modules/structs" "github.com/stretchr/testify/assert" ) @@ -21,7 +21,7 @@ func TestVersion(t *testing.T) { req := NewRequest(t, "GET", "/api/v1/version") resp := MakeRequest(t, req, http.StatusOK) - var version gitea.ServerVersion + var version structs.ServerVersion DecodeJSON(t, resp, &version) assert.Equal(t, setting.AppVer, string(version.Version)) } |