#!/bin/bash

# Switch to working directory
cd /home/ec2-user/healthck_check/slow_query_check

# Set Go environment variables
#export PATH=$PATH:/usr/local/go/bin

today=$(date +%Y%m%d)
# Execute go test command
go test -v -timeout=0 -run TestCheckTikvIn30Min -day=$today


# run in pod
# Switch to working directory
# cd /data/slow-query/slowquerycheck

# Set Go environment variables
# export PATH=$PATH:/usr/local/go/bin

# today=$(date +%Y%m%d)
# Execute go test command
# CGO_ENABLED=1 go test -v -timeout=0 -run TestCheckTikvIn30Min -day=$today


