Skip to content

Commit

Permalink
[_]
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed May 15, 2023
1 parent a233fbc commit b1dfcd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions studio/studio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ func TestAPI(t *testing.T) {

code, rows := httpGet[arr]("/dsl/ReadDir?name=/models", t)
assert.Equal(t, 200, code)
assert.Equal(t, 10, len(rows))
assert.Equal(t, 8, len(rows))

code, rows = httpGet[arr]("/dsl/ReadDir?name=/models&recursive=1", t)
assert.Equal(t, 200, code)
assert.Equal(t, 15, len(rows))
assert.Equal(t, 13, len(rows))

code, length := httpPost[int]("/dsl/WriteFile?name=/models/foo.mod.yao", []byte(`{"name":"foo"}`), t)
assert.Equal(t, 200, code)
Expand Down

0 comments on commit b1dfcd6

Please sign in to comment.