Revize a7d16717
Přidáno uživatelem Pultak před téměř 3 roky(ů)
ld_client/LDClient/detection/AInfoFetcher.cs | ||
---|---|---|
115 | 115 |
BodySerialNumber = bodySerialNumber; |
116 | 116 |
|
117 | 117 |
// Finally, delete the file. |
118 |
//File.Delete(filePath);
|
|
118 |
File.Delete(filePath); |
|
119 | 119 |
} catch (Exception exception) { |
120 | 120 |
Program.DefaultLogger.Error($"Failed to retrieve debugger info. File {filePath} may not exist or it does not have the right format. {exception.Message}"); |
121 | 121 |
return false; |
ld_client/LDClient/network/ApiClient.cs | ||
---|---|---|
70 | 70 |
/// </summary> |
71 | 71 |
/// <param name="payload">instance of a payload to be sent off to the server</param> |
72 | 72 |
public async Task SendPayloadAsync(Payload payload) { |
73 |
Program.DefaultLogger.Debug("SendPayloadAsync called."); |
|
73 | 74 |
try { |
74 | 75 |
// Create an instance of Stopwatch (to measure how much |
75 | 76 |
// the action took). |
ld_client/LDClientTests/detection/InfoFetcherTests.cs | ||
---|---|---|
8 | 8 |
namespace LDClientTests.detection; |
9 | 9 |
|
10 | 10 |
internal class InfoFetcherTests { |
11 |
private InfoFetcher _defaultFetcher; |
|
12 |
private InfoFetcher _fetcherWithoutPars; |
|
11 |
private AInfoFetcher _defaultFetcher;
|
|
12 |
private AInfoFetcher _fetcherWithoutPars;
|
|
13 | 13 |
|
14 | 14 |
|
15 | 15 |
private readonly string[] _defaultArguments = new[] { "argument 1", "argument 2" , "argument 3"}; |
... | ... | |
25 | 25 |
_mockFileUtils = new Mock<IFileUtils>(MockBehavior.Strict); |
26 | 26 |
|
27 | 27 |
|
28 |
_defaultFetcher = new InfoFetcher(DefaultMaxAttempts, 50, "info.txt", "executable.exe",
|
|
28 |
_defaultFetcher = new T32RemFetcher(DefaultMaxAttempts, 50, "info.txt", "executable.exe",
|
|
29 | 29 |
_defaultArguments, 0, 50) { |
30 | 30 |
FileUtils = _mockFileUtils.Object, |
31 | 31 |
ProcessUtils = _mockProcessUtils.Object |
32 | 32 |
}; |
33 | 33 |
|
34 | 34 |
|
35 |
_fetcherWithoutPars = new InfoFetcher(DefaultMaxAttempts, 50, "info.txt", "executable.exe",
|
|
35 |
_fetcherWithoutPars = new T32RemFetcher(DefaultMaxAttempts, 50, "info.txt", "executable.exe",
|
|
36 | 36 |
null, 0, 50) { |
37 | 37 |
FileUtils = _mockFileUtils.Object, |
38 | 38 |
ProcessUtils = _mockProcessUtils.Object |
Také k dispozici: Unified diff
re #9845 tests fix after refactoring