refactor the warning test.
1 file changed