[lxc-devel] [lxd/master] lxd/db: Fix internal DB test

stgraber on Github lxc-bot at linuxcontainers.org
Sun Sep 2 07:51:20 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/20180902/bcc617b7/attachment.bin>
-------------- next part --------------
From 704b6be1c9610078bf119ceffd1fb519c1ae6fa3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Sun, 2 Sep 2018 00:49:24 -0700
Subject: [PATCH] lxd/db: Fix internal DB 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/db/db_internal_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/db/db_internal_test.go b/lxd/db/db_internal_test.go
index 41962764f1..6595620a2a 100644
--- a/lxd/db/db_internal_test.go
+++ b/lxd/db/db_internal_test.go
@@ -200,7 +200,7 @@ func (s *dbTestSuite) Test_ImageGet_for_missing_fingerprint() {
 	var err error
 
 	_, _, err = s.db.ImageGet("unknown", false, false)
-	s.Equal(err, sql.ErrNoRows)
+	s.Equal(err, ErrNoSuchObject)
 }
 
 func (s *dbTestSuite) Test_ImageExists_true() {


More information about the lxc-devel mailing list