mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
99 lines
2.1 KiB
JSON
99 lines
2.1 KiB
JSON
[
|
|
{
|
|
"name": "retry while accepted connection is still connecting before gateway echo",
|
|
"input": {
|
|
"connectionId": "connection-a",
|
|
"guildId": "guild-a",
|
|
"channelId": "channel-a",
|
|
"voiceState": null,
|
|
"connectionState": {
|
|
"connectionId": "connection-a",
|
|
"guildId": "guild-a",
|
|
"channelId": "channel-a",
|
|
"connecting": true,
|
|
"connected": false,
|
|
"reconnecting": false
|
|
}
|
|
},
|
|
"expected": true
|
|
},
|
|
{
|
|
"name": "retry when gateway voice state confirms channel",
|
|
"input": {
|
|
"connectionId": "connection-a",
|
|
"guildId": "guild-a",
|
|
"channelId": "channel-a",
|
|
"voiceState": {
|
|
"guild_id": "guild-a",
|
|
"channel_id": "channel-a"
|
|
},
|
|
"connectionState": {
|
|
"connectionId": "stale-connection",
|
|
"guildId": "guild-a",
|
|
"channelId": "channel-a",
|
|
"connecting": false,
|
|
"connected": false,
|
|
"reconnecting": false
|
|
}
|
|
},
|
|
"expected": true
|
|
},
|
|
{
|
|
"name": "reject stale local connection",
|
|
"input": {
|
|
"connectionId": "connection-a",
|
|
"guildId": "guild-a",
|
|
"channelId": "channel-a",
|
|
"voiceState": null,
|
|
"connectionState": {
|
|
"connectionId": "connection-b",
|
|
"guildId": "guild-a",
|
|
"channelId": "channel-a",
|
|
"connecting": true,
|
|
"connected": false,
|
|
"reconnecting": false
|
|
}
|
|
},
|
|
"expected": false
|
|
},
|
|
{
|
|
"name": "reject inactive accepted connection",
|
|
"input": {
|
|
"connectionId": "connection-a",
|
|
"guildId": "guild-a",
|
|
"channelId": "channel-a",
|
|
"voiceState": null,
|
|
"connectionState": {
|
|
"connectionId": "connection-a",
|
|
"guildId": "guild-a",
|
|
"channelId": "channel-a",
|
|
"connecting": false,
|
|
"connected": false,
|
|
"reconnecting": false
|
|
}
|
|
},
|
|
"expected": false
|
|
},
|
|
{
|
|
"name": "treat null guild ids as equivalent private voice scope",
|
|
"input": {
|
|
"connectionId": "connection-a",
|
|
"guildId": null,
|
|
"channelId": "dm-channel-a",
|
|
"voiceState": {
|
|
"guild_id": null,
|
|
"channel_id": "dm-channel-a"
|
|
},
|
|
"connectionState": {
|
|
"connectionId": "connection-b",
|
|
"guildId": null,
|
|
"channelId": "dm-channel-a",
|
|
"connecting": false,
|
|
"connected": false,
|
|
"reconnecting": false
|
|
}
|
|
},
|
|
"expected": true
|
|
}
|
|
]
|