Merge imported products into local session state
This commit is contained in:
@@ -13,10 +13,10 @@ import (
|
||||
func TestLoadCurrentStateRequiresCommitPointer(t *testing.T) {
|
||||
store := &storage.FakeBackend{}
|
||||
prefix := S3SessionPrefix("dnd", "sample-campaign", "2026-05-03")
|
||||
_, err := LoadCurrentState(context.Background(), store, prefix, CurrentStateValidation{})
|
||||
_, err := LoadCurrentInventory(context.Background(), store, prefix, CurrentStateValidation{})
|
||||
var missing *CurrentCommitPointerMissingError
|
||||
if !errors.As(err, &missing) || !errors.Is(err, ErrCurrentCommitPointerMissing) {
|
||||
t.Fatalf("LoadCurrentState() error = %v, want missing commit pointer", err)
|
||||
t.Fatalf("LoadCurrentInventory() error = %v, want missing commit pointer", err)
|
||||
}
|
||||
if missing.Key != S3CurrentCommitPointerKey(prefix) {
|
||||
t.Fatalf("missing pointer key = %q", missing.Key)
|
||||
|
||||
Reference in New Issue
Block a user