mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-13 11:40:53 +08:00
test: use an 8+ rune quote in the unreadable-store case
The quote x7 is now rejected as too short before the store is read, so the test never reached the not_assessed path. Use a quote long enough to pass the minimum; the store removal is unchanged.
This commit is contained in:
@@ -140,7 +140,7 @@ func TestVerificationUnreadableStoreNotAssessedReportSaved(t *testing.T) {
|
||||
if err := os.RemoveAll(filepath.Join(s.m.dir, "evidence")); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
msg, isErr := updateReport(t, s, f.NodeID, `,"poe_level":3,"evidence_quotes":["x7"]`)
|
||||
msg, isErr := updateReport(t, s, f.NodeID, `,"poe_level":3,"evidence_quotes":["user admin: x7"]`)
|
||||
if isErr || !strings.Contains(msg, "verification: not_assessed") {
|
||||
t.Fatalf("unexpected result: err=%v %q", isErr, msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user