mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
Fix more tests on Windows (#1824)
Signed-off-by: eduzgun <emreduz00@gmail.com>
This commit is contained in:
@@ -7,6 +7,7 @@ package refactoring
|
||||
|
||||
import (
|
||||
"context"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@@ -517,7 +518,8 @@ A chain of move statements must end with an address that doesn't appear in any o
|
||||
if !gotDiags.HasErrors() {
|
||||
t.Fatalf("unexpected success\nwant error: %s", test.WantError)
|
||||
}
|
||||
if got, want := gotDiags.Err().Error(), test.WantError; got != want {
|
||||
normalisedErr := filepath.ToSlash(gotDiags.Err().Error())
|
||||
if got, want := normalisedErr, test.WantError; got != want {
|
||||
t.Fatalf("wrong error\ngot error: %s\nwant error: %s", got, want)
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user