Skip to content

Commit 16b68af

Browse files
committed
ScriptInfoTest: adjust for new version strings
The behavior changed with a7f49c6. We no longer prepend the datestamp. This changes the test accordingly.
1 parent d2791e0 commit 16b68af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/org/scijava/script/ScriptInfoTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,8 @@ public void testVersion() throws IOException {
122122
// verify that the version is correct
123123
final ScriptInfo info = new ScriptInfo(context, scriptFile);
124124
final String version = info.getVersion();
125-
final String timestampPattern = "\\d{4}-\\d{2}-\\d{2}-\\d{2}:\\d{2}:\\d{2}";
126125
final String sha1 = "28f4a2880d604774ac5d604d35f431047a087c9e";
127-
assertTrue(version.matches("^" + timestampPattern + "-" + sha1 + "$"));
126+
assertTrue(version.matches("^" + sha1 + "$"));
128127

129128
// clean up the temporary directory
130129
FileUtils.deleteRecursively(tmpDir);

0 commit comments

Comments
 (0)