diff --git a/studio/studio_test.go b/studio/studio_test.go index 4d792935c5..794e9d40f1 100644 --- a/studio/studio_test.go +++ b/studio/studio_test.go @@ -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)