refactor(test): update test expectations for removed submit route
- Comment out submit route assertions in main_test.go and server_test.go - Comment out TestTask_OldAPICompatibility in task_test.go - Update expected route count 31→30 in testenv env_test.go Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -64,7 +64,7 @@ func TestAllRoutesRegistered(t *testing.T) {
|
||||
{"GET", "/api/v1/applications/1"},
|
||||
{"PUT", "/api/v1/applications/1"},
|
||||
{"DELETE", "/api/v1/applications/1"},
|
||||
{"POST", "/api/v1/applications/1/submit"},
|
||||
// {"POST", "/api/v1/applications/1/submit"}, // [已禁用] 已被 POST /tasks 取代
|
||||
{"POST", "/api/v1/files/uploads"},
|
||||
{"GET", "/api/v1/files/uploads/1"},
|
||||
{"PUT", "/api/v1/files/uploads/1/chunks/0"},
|
||||
@@ -82,7 +82,7 @@ func TestAllRoutesRegistered(t *testing.T) {
|
||||
{"GET", "/api/v1/tasks"},
|
||||
}
|
||||
|
||||
if len(routes) != 31 {
|
||||
if len(routes) != 30 {
|
||||
t.Fatalf("expected 31 routes, got %d", len(routes))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user