From fe0cc96b249298e2a2e7f54fca16f0245de43c46 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 28 Feb 2017 18:19:42 +0100 Subject: [PATCH] fix: race of conditions in keystore test License: MIT Signed-off-by: Jakub Sztandera --- test/sharness/t0165-keystore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/sharness/t0165-keystore.sh b/test/sharness/t0165-keystore.sh index 3fafdc90c..ec9726a8a 100755 --- a/test/sharness/t0165-keystore.sh +++ b/test/sharness/t0165-keystore.sh @@ -33,7 +33,8 @@ test_key_cmd() { ' test_expect_success "key list -l contains self key with peerID" ' - ipfs key list -l | grep "$(ipfs config Identity.PeerID) self" + PeerID="$(ipfs config Identity.PeerID)" + ipfs key list -l | grep "$PeerID self" ' }