alttester / alttester/AltTester-Unity-SDK

[WebSocket] [C# Driver] The error regarding the inability of connection to AltServer of the tests is different depending on the connectTimeout

オープン
#1,463 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug no version triaged
主要言語
C#
スター
121
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

説明

## Steps to reproduce

1. Open the AltTester-Unity-SDK project in Unity
2. Create an AltTest file under an Editor folder
3. Open it in IDE and add a `connectTimeout` parameter to the altDriver of a value bigger than 23 seconds
4. Run the AltTest
5. Modify the connectTimout value into a value smaller than 24 seconds
6. Run the AltTest

## Actual result

### AR

4. The `System.InvalidOperationException : A series of reconnecting has failed` error is triggered
5. The `ConnectionException : Connection closed by AltServer with reason: An exception has occurred while attempting to connect..` is triggered

The error is different depending on connectTimeout value.
### Additional info

❗ When the `ConnectionException` is triggered (as in case of Java and Python drivers) the message displayed is different than the message from Java and Python (`Connection closed by AltServer with reason: An exception has occurred while attempting to connect..` instead of `Failed to connect to AltTester on host: 127.0.0.1 port: 13000`).
Setup:
- AltTester-UInity-SDK project from latest dev branch (04.01.2024)
## Expected result

### ER

The error triggered in this situation should be `ConnectionException` and it should be independent of `connectTimeout`. Also the message of the error should be constant with the messages displayed by `Java` and `Python` drivers
### Additional info

## Testability

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。