refactor: разнести пакеты и обновить валидацию
This commit is contained in:
@@ -2,6 +2,7 @@ package mila
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
)
|
||||
@@ -41,7 +42,7 @@ func TestFileStoreMissingFileReturnsNotReady(t *testing.T) {
|
||||
if err == nil {
|
||||
t.Fatal("expected error")
|
||||
}
|
||||
if err != ErrNotReady {
|
||||
if !errors.Is(err, ErrNotReady) {
|
||||
t.Fatalf("expected ErrNotReady, got %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user