From 834ea02ad82932e0f17e37dbd5c51497ecf7557f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 4 Nov 2014 21:11:10 +0100 Subject: tests: When a store item is to be deleted, make it statistically unique. Fixes . Reported by Mark H Weaver . Previously, if tests/nar.scm ran concurrently with tests/gexp.scm, the store item "foo" containing the string "Hello, world!" could be deleted (via 'delete-paths') from the tests/nar.scm daemon while the tests/gexp.scm daemon would still consider it live. * tests/nar.scm ("restore-file-set (missing signature)"): Use (random-text) rather than "Hello, world!", to avoid concurrent deletion of store item "foo" used in tests/gexp.scm. --- tests/nar.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/nar.scm') diff --git a/tests/nar.scm b/tests/nar.scm index 1641d6f9b2..38b2482c92 100644 --- a/tests/nar.scm +++ b/tests/nar.scm @@ -277,7 +277,7 @@ (test-assert "restore-file-set (missing signature)" (let/ec return (with-store store - (let* ((file (add-text-to-store store "foo" "Hello, world!")) + (let* ((file (add-text-to-store store "foo" (random-text))) (dump (call-with-bytevector-output-port (cute export-paths store (list file) <> #:sign? #f)))) -- cgit v1.2.3