[lxc-devel] [distrobuilder/master] tests: Fix flaky GPG tests

monstermunchkin on Github lxc-bot at linuxcontainers.org
Tue May 22 06:48:01 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 363 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180522/47bda80b/attachment.bin>
-------------- next part --------------
From 31d4cc34c71d7367136f5fd9ea1487235c793b32 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 22 May 2018 08:47:16 +0200
Subject: [PATCH] tests: Fix flaky GPG tests

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 shared/util_test.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shared/util_test.go b/shared/util_test.go
index fdaf068..187adcb 100644
--- a/shared/util_test.go
+++ b/shared/util_test.go
@@ -19,7 +19,7 @@ func TestVerifyFile(t *testing.T) {
 	testdataDir := filepath.Join(wd, "..", "testdata")
 
 	keys := []string{"0x5DE8949A899C8D99"}
-	keyserver := "keys.gnupg.net"
+	keyserver := "keyserver.ubuntu.com"
 
 	tests := []struct {
 		name          string
@@ -93,7 +93,7 @@ func TestVerifyFile(t *testing.T) {
 }
 
 func TestCreateGPGKeyring(t *testing.T) {
-	keyring, err := CreateGPGKeyring("pgp.mit.edu", []string{"0x5DE8949A899C8D99"})
+	keyring, err := CreateGPGKeyring("keyserver.ubuntu.com", []string{"0x5DE8949A899C8D99"})
 	if err != nil {
 		t.Fatalf("Unexpected error: %s", err)
 	}


More information about the lxc-devel mailing list