Skip to content

Commit

Permalink
test: compare whole string not first char in NoteEditor test
Browse files Browse the repository at this point in the history
this test is marked flaky so it won't ever run in CI but it was
failing locally for me every time as it was comparing the first
char of the string it pulled to a string, instead of string vs string
  • Loading branch information
mikehardy committed Aug 19, 2024
1 parent 9541b3a commit 12c2511
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class NoteEditorIntentTest : InstrumentedTest() {
val editor = activity.getEditor()
currentFieldStrings = editor.currentFieldStrings[0]
}
MatcherAssert.assertThat(currentFieldStrings!![0], Matchers.equalTo("sample text"))
MatcherAssert.assertThat(currentFieldStrings!!, Matchers.equalTo("sample text"))
}

@Test
Expand Down

0 comments on commit 12c2511

Please sign in to comment.