Skip to content

Commit

Permalink
guacone - managing totalSuccess (#1267)
Browse files Browse the repository at this point in the history
* guacone - managing totalSuccess

Signed-off-by: mrizzi <mrizzi@redhat.com>

* E2E test - add sleep before ingesting files

Signed-off-by: mrizzi <mrizzi@redhat.com>

* E2E test - add sleep 5 before ingesting files

Signed-off-by: mrizzi <mrizzi@redhat.com>

* E2E test - add sleep 15 before ingesting files

Signed-off-by: mrizzi <mrizzi@redhat.com>

---------

Signed-off-by: mrizzi <mrizzi@redhat.com>
  • Loading branch information
mrizzi committed Sep 14, 2023
1 parent 3e496d1 commit 2b44e51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/guacone/cmd/files.go
Expand Up @@ -145,6 +145,7 @@ var filesCmd = &cobra.Command{
gotErr = true
return fmt.Errorf("unable to ingest document: %w", err)
}
totalSuccess += 1
return nil
}

Expand Down
2 changes: 2 additions & 0 deletions internal/testing/e2e/e2e
Expand Up @@ -36,6 +36,8 @@ popd
echo @@@@ Starting up guac server in background
go run "${GUAC_DIR}/cmd/guacgql" &

sleep 15

echo @@@@ Ingesting guac-data into server
go run "${GUAC_DIR}/cmd/guacone" collect files "${GUAC_DIR}/guac-data/docs/"

Expand Down

0 comments on commit 2b44e51

Please sign in to comment.