Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
2ea061cc
Commit
2ea061cc
authored
May 08, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9c017b72
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
go/xcommon/xnet/lonet/registry_sqlite.go
go/xcommon/xnet/lonet/registry_sqlite.go
+1
-1
go/xcommon/xnet/lonet/registry_sqlite_test.go
go/xcommon/xnet/lonet/registry_sqlite_test.go
+2
-0
No files found.
go/xcommon/xnet/lonet/registry_sqlite.go
View file @
2ea061cc
...
...
@@ -152,7 +152,7 @@ func (r *sqliteRegistry) Query(ctx context.Context, hostname string) (osladdr st
osladdr
=
stmt
.
ColumnText
(
0
)
nrow
++
return
nil
})
}
,
hostname
)
if
err
!=
nil
{
return
""
,
err
...
...
go/xcommon/xnet/lonet/registry_sqlite_test.go
View file @
2ea061cc
...
...
@@ -54,6 +54,7 @@ func TestRegistrySQLite(t *testing.T) {
osladdr
,
err
:=
r
.
Query
(
ctx
,
hostname
)
if
ewant
,
iserr
:=
expect
.
(
error
);
iserr
{
// error expected
// XXX construct full registry error around ewant + reflect.DeepCompare
e
,
ok
:=
err
.
(
*
registryError
)
if
!
(
ok
&&
e
.
Err
==
ewant
&&
osladdr
==
""
)
{
t
.
Fatalf
(
"%s: query %q:
\n
want:
\"\"
, %v
\n
have: %q, %v"
,
...
...
@@ -85,6 +86,7 @@ func TestRegistrySQLite(t *testing.T) {
}
if
ewant
!=
nil
{
// error expected
// XXX construct full registry error around ewant + reflect.DeepCompare
e
,
ok
:=
err
.
(
*
registryError
)
if
(
!
ok
&&
e
.
Err
==
ewant
)
{
t
.
Fatalf
(
"%s: announce %q %q:
\n
want %v
\n
have: %v"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment