|
5 | 5 | "testing" |
6 | 6 | "time" |
7 | 7 |
|
8 | | - "github.com/chroma-core/chroma/go/pkg/common" |
9 | | - |
10 | 8 | "github.com/chroma-core/chroma/go/pkg/memberlist_manager" |
11 | 9 | "github.com/chroma-core/chroma/go/pkg/proto/coordinatorpb" |
12 | 10 | "github.com/chroma-core/chroma/go/pkg/sysdb/metastore/db/dbmodel" |
@@ -225,10 +223,10 @@ func (suite *AttachFunctionTestSuite) TestAttachFunction_SuccessfulCreation() { |
225 | 223 | // Execute AttachFunction |
226 | 224 | response, err := suite.coordinator.AttachFunction(ctx, request) |
227 | 225 |
|
228 | | - // Assertions - heap service is not enabled in this test setup |
229 | | - suite.Error(err) |
230 | | - suite.Nil(response) |
231 | | - suite.ErrorIs(err, common.ErrHeapServiceNotEnabled) |
| 226 | + // Assertions - AttachFunction now succeeds without heap service, creating attached function with is_ready=false |
| 227 | + suite.NoError(err) |
| 228 | + suite.NotNil(response) |
| 229 | + suite.NotEmpty(response.Id) |
232 | 230 |
|
233 | 231 | // Verify all mocks were called as expected |
234 | 232 | suite.mockMetaDomain.AssertExpectations(suite.T()) |
@@ -407,11 +405,11 @@ func (suite *AttachFunctionTestSuite) TestAttachFunction_RecoveryFlow() { |
407 | 405 | _ = txFunc(context.Background()) |
408 | 406 | }).Return(nil).Once() |
409 | 407 |
|
410 | | - // First AttachFunction call - should fail at heap push |
| 408 | + // First AttachFunction call - should succeed, creating attached function with is_ready=false |
411 | 409 | response1, err1 := suite.coordinator.AttachFunction(ctx, request) |
412 | | - suite.Error(err1) |
413 | | - suite.Nil(response1) |
414 | | - suite.Contains(err1.Error(), "heap service") |
| 410 | + suite.NoError(err1) |
| 411 | + suite.NotNil(response1) |
| 412 | + suite.NotEmpty(response1.Id) |
415 | 413 |
|
416 | 414 | // ========== GetAttachedFunctionByName: Should Return ErrAttachedFunctionNotReady ========== |
417 | 415 |
|
|
0 commit comments