Skip to content

Commit e77d5ee

Browse files
fix checks
1 parent 32ac8bc commit e77d5ee

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dgraph/cmd/dgraphimport/import_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func scanPDirs(basePath string) (map[uint32]string, error) {
170170

171171
for _, entry := range entries {
172172
if entry.IsDir() {
173-
groupID, err := strconv.Atoi(entry.Name())
173+
groupID, err := strconv.ParseUint(entry.Name(), 10, 32)
174174
if err == nil {
175175
pDir := filepath.Join(basePath, entry.Name(), "p")
176176
if _, err := os.Stat(pDir); err == nil {

dgraph/cmd/dgraphimport/import_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ func verifyImportResults(t *testing.T, gc *dgraphapi.GrpcClient) {
320320
t.Fatal("aborting test due to query timeout")
321321
}
322322
require.NoError(t, err)
323-
dgraphapi.CompareJSON(tt.Resp, string(resp.Json))
323+
require.NoError(t, dgraphapi.CompareJSON(tt.Resp, string(resp.Json)))
324324
}
325325
}
326326

0 commit comments

Comments
 (0)