Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update upload conflict test expectation

Neeraj Gupta2484f4af9f46
diff --git a/server/pkg/controller/file_upload_binding_test.go b/server/pkg/controller/file_upload_binding_test.go
index 5521b0ebab..e5e32d8956 100644
--- a/server/pkg/controller/file_upload_binding_test.go
+++ b/server/pkg/controller/file_upload_binding_test.go
@@ -179,7 +179,7 @@ func TestDuplicateFileRegistrationAppBinding(t *testing.T) {
ctx.Request = httptest.NewRequest(http.MethodPost, "/files", nil)
result, err := controller.Create(ctx, file.OwnerID, file, "test", tc.app)
if tc.collision {
- require.ErrorIs(t, err, ente.ErrBadRequest)
+ require.ErrorIs(t, err, ente.ErrFileUploadConflict)
require.Eventually(t, func() bool {
var pending int
err := db.QueryRow(`SELECT COUNT(*) FROM object_copies WHERE wasabi IS NULL`).Scan(&pending)