Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update go test #2076

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 6 additions & 16 deletions .github/workflows/pika.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,14 @@ jobs:
chmod +x ../tests/integration/start_master_and_slave.sh
../tests/integration/start_master_and_slave.sh

- name: Run Python E2E Tests
working-directory: ${{ github.workspace }}/build
run: |
python3 ../tests/integration/pika_replication_test.py
python3 ../tests/unit/Blpop_Brpop_test.py

- name: Run Go E2E Tests
working-directory: ${{ github.workspace }}/build
run: |
cd ../tests/integration/
chmod +x integrate_test.sh
sh integrate_test.sh


build_on_centos:
runs-on: ubuntu-latest
container:
Expand All @@ -89,7 +84,7 @@ jobs:
steps:
- name: Install deps
run: |
yum install -y wget git autoconf centos-release-scl
yum install -y wget git autoconf centos-release-scl gcc
yum install -y devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-make devtoolset-10-bin-util
yum install -y llvm-toolset-7 llvm-toolset-7-clang tcl which python3
python3 -m pip install --upgrade pip
Expand Down Expand Up @@ -134,11 +129,12 @@ jobs:
chmod +x ../tests/integration/start_master_and_slave.sh
../tests/integration/start_master_and_slave.sh

- name: Run Python E2E Tests
- name: Run Go E2E Tests
working-directory: ${{ github.workspace }}/build
run: |
python3 ../tests/integration/pika_replication_test.py
python3 ../tests/unit/Blpop_Brpop_test.py
cd ../tests/integration/
chmod +x integrate_test.sh
sh integrate_test.sh

build_on_macos:
runs-on: macos-latest
Expand Down Expand Up @@ -193,12 +189,6 @@ jobs:
chmod +x ../tests/integration/start_master_and_slave.sh
../tests/integration/start_master_and_slave.sh

- name: Run Python E2E Tests
working-directory: ${{ github.workspace }}/build
run: |
python3 ../tests/integration/pika_replication_test.py
python3 ../tests/unit/Blpop_Brpop_test.py

- name: Run Go E2E Tests
working-directory: ${{ github.workspace }}/build
run: |
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/csanning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pika_integration
import (
"context"
"fmt"
"time"

. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/gomega"
Expand All @@ -16,6 +17,7 @@ var _ = Describe("Csanning Commands", func() {
BeforeEach(func() {
client = redis.NewClient(pikaOptions1())
Expect(client.FlushDB(ctx).Err()).NotTo(HaveOccurred())
time.Sleep(1 * time.Second)
})

AfterEach(func() {
Expand Down
Loading
Loading