[lxc-devel] [lxd/master] lxd: Fix go test

stgraber on Github lxc-bot at linuxcontainers.org
Wed Dec 19 23:31:51 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181219/bdb13b8d/attachment.bin>
-------------- next part --------------
From af340ced4793d4a6e067cb61691dcb7499e7a8f4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Wed, 19 Dec 2018 18:23:37 -0500
Subject: [PATCH] lxd: Fix go test
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/cluster/config_test.go | 2 +-
 lxd/container_test.go      | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lxd/cluster/config_test.go b/lxd/cluster/config_test.go
index c319890987..35e4c95e73 100644
--- a/lxd/cluster/config_test.go
+++ b/lxd/cluster/config_test.go
@@ -60,7 +60,7 @@ func TestConfigLoad_OfflineThresholdValidator(t *testing.T) {
 	require.NoError(t, err)
 
 	_, err = config.Patch(map[string]interface{}{"cluster.offline_threshold": "2"})
-	require.EqualError(t, err, "cannot set 'cluster.offline_threshold' to '2': value must be greater than '4'")
+	require.EqualError(t, err, "cannot set 'cluster.offline_threshold' to '2': Value must be greater than '4'")
 
 }
 
diff --git a/lxd/container_test.go b/lxd/container_test.go
index 96373926c4..263412b787 100644
--- a/lxd/container_test.go
+++ b/lxd/container_test.go
@@ -47,6 +47,7 @@ func (suite *containerTestSuite) TestContainer_ProfilesMulti() {
 			Description: "unprivileged",
 			Config:      map[string]string{"security.privileged": "true"},
 			Devices:     types.Devices{},
+			Project:     "default",
 		}
 		_, err := tx.ProfileCreate(profile)
 		return err


More information about the lxc-devel mailing list