diff --git a/darwin.go b/darwin.go index 7dbea30..af938d9 100644 --- a/darwin.go +++ b/darwin.go @@ -124,7 +124,7 @@ type InvalidChecksumError struct { } func (i InvalidChecksumError) Error() string { - return fmt.Sprintf("Invalid cheksum for migration %f", i.Version) + return fmt.Sprintf("Invalid checksum for migration %f", i.Version) } // Validate if the database migrations are applied and consistent diff --git a/darwin_test.go b/darwin_test.go index 1acf1b0..838712d 100644 --- a/darwin_test.go +++ b/darwin_test.go @@ -174,7 +174,7 @@ func Test_RemovedMigrationError_Error(t *testing.T) { func Test_InvalidChecksumError_Error(t *testing.T) { err := InvalidChecksumError{Version: 1} - if err.Error() != fmt.Sprintf("Invalid cheksum for migration %f", 1.0) { + if err.Error() != fmt.Sprintf("Invalid checksum for migration %f", 1.0) { t.Error("Must inform when a migration have an invalid checksum") } }