Archived
tests: messagediff argument order should be expected, actual
So that the diff describes the changes that happened in actual as compared to expected. The opposite is confusing.
This commit is contained in:
1 parent
78120bd989
commit
c439c543d0
4 files changed
+23
-23
No files matched your search
+2
-2
@@ -533,7 +533,7 @@ func TestListDropFolder(t *testing.T) {
|
||||
|
||||
expectedFolderList := []string{"test0", "test1"}
|
||||
actualFolderList := ldb.ListFolders()
|
||||
if diff, equal := messagediff.PrettyDiff(actualFolderList, expectedFolderList); !equal {
|
||||
if diff, equal := messagediff.PrettyDiff(expectedFolderList, actualFolderList); !equal {
|
||||
t.Fatalf("FolderList mismatch. Diff:\n%s", diff)
|
||||
}
|
||||
if l := len(globalList(s0)); l != 3 {
|
||||
@@ -549,7 +549,7 @@ func TestListDropFolder(t *testing.T) {
|
||||
|
||||
expectedFolderList = []string{"test0"}
|
||||
actualFolderList = ldb.ListFolders()
|
||||
if diff, equal := messagediff.PrettyDiff(actualFolderList, expectedFolderList); !equal {
|
||||
if diff, equal := messagediff.PrettyDiff(expectedFolderList, actualFolderList); !equal {
|
||||
t.Fatalf("FolderList mismatch. Diff:\n%s", diff)
|
||||
}
|
||||
if l := len(globalList(s0)); l != 3 {
|
||||
|
||||
Reference in new issue
Block a user