- Removing warning
! Increasing wait time on client mock script to avoid firing too early
This commit is contained in:
parent
11d1652467
commit
7c8bc8b4fc
@ -110,7 +110,7 @@ pub async fn delete_channel(id: u64) {
|
|||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
struct DeletedChannel {
|
struct DeletedChannel {
|
||||||
id: u64
|
id: u64
|
||||||
};
|
}
|
||||||
let channel = DeletedChannel { id };
|
let channel = DeletedChannel { id };
|
||||||
if let Err(e) = notify("delete-channel", channel).await {
|
if let Err(e) = notify("delete-channel", channel).await {
|
||||||
eprintln!("[API-RTC] Unable to connect to RTC server: {}", e);
|
eprintln!("[API-RTC] Unable to connect to RTC server: {}", e);
|
||||||
@ -130,7 +130,7 @@ pub async fn update_nickname<'s>(id: u64, name: &'s str) {
|
|||||||
struct NewNick<'n> {
|
struct NewNick<'n> {
|
||||||
id: u64,
|
id: u64,
|
||||||
name: &'n str
|
name: &'n str
|
||||||
};
|
}
|
||||||
|
|
||||||
let user = NewNick { id, name };
|
let user = NewNick { id, name };
|
||||||
if let Err(e) = notify("update-nick", user).await {
|
if let Err(e) = notify("update-nick", user).await {
|
||||||
|
@ -12,7 +12,7 @@ pushd ./json-api/
|
|||||||
echo Setting up API server
|
echo Setting up API server
|
||||||
cargo run --release -- -H ../hmac.secret -w ../wss-hmac.secret -s&
|
cargo run --release -- -H ../hmac.secret -w ../wss-hmac.secret -s&
|
||||||
json_pid=$!
|
json_pid=$!
|
||||||
sleep 2
|
sleep 5 # Really high wait time because pipelines be slow as hell sometimes
|
||||||
|
|
||||||
# Next come back and startup the rest test client
|
# Next come back and startup the rest test client
|
||||||
echo Setting up the client itself
|
echo Setting up the client itself
|
||||||
@ -22,6 +22,8 @@ pushd ./json-api/
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
# Thse probably won't do anything of value in pipelines but hey they work in local
|
||||||
|
# environments so whatever /shrug
|
||||||
# catch errors that may occur and kill off process group
|
# catch errors that may occur and kill off process group
|
||||||
kill $(pgrep node)
|
kill $(pgrep node)
|
||||||
kill $(pgrep json)
|
kill $(pgrep json)
|
||||||
|
Loading…
Reference in New Issue
Block a user