Skip to content

Commit 94879b9

Browse files
committed
VulpixUnitTests: Fix argument order for assertEquals
This small issue swaps labels in the error output and complicated fixing failures.
1 parent df78c3c commit 94879b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/test/dotty/tools/vulpix/VulpixUnitTests.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ class VulpixUnitTests extends ParallelTesting {
9191
fail()
9292
} catch {
9393
case ae: AssertionError =>
94-
assertEquals(ae.getMessage, "Run test failed, but should not, reasons:\n - test 'tests/vulpix-tests/unit/timeout.scala' timed out")
94+
assertEquals("Run test failed, but should not, reasons:\n - test 'tests/vulpix-tests/unit/timeout.scala' timed out",
95+
ae.getMessage)
9596
}
9697
}
9798
}

0 commit comments

Comments
 (0)