@@ -55,7 +55,7 @@ public async Task CopyFromInRingMachines()
55
55
new OperationContext ( context ) ,
56
56
hashWithLocations ,
57
57
handleCopyAsync : tpl => Task . FromResult ( new PutResult ( hash , 42 ) ) ,
58
- inRingMachines : new MachineLocation [ ] { new MachineLocation ( " ") } ) ;
58
+ inRingMachines : new MachineLocation [ ] { new MachineLocation ( @"grpc://fun.com:123 ") } ) ;
59
59
60
60
result . ShouldBeSuccess ( ) ;
61
61
}
@@ -99,7 +99,7 @@ public async Task CopyFailsForWrongCopySize()
99
99
var hashWithLocations = new ContentHashWithSizeAndLocations (
100
100
hash ,
101
101
size : 42 ,
102
- new MachineLocation [ ] { new MachineLocation ( "" ) } ) ;
102
+ new MachineLocation [ ] { new MachineLocation ( @"grpc://fun.com:123" ) } ) ;
103
103
104
104
mockFileCopier . CopyToAsyncResult = CopyFileResult . SuccessWithSize ( 41 ) ;
105
105
var result = await distributedCopier . TryCopyAndPutAsync (
@@ -127,7 +127,7 @@ public async Task CopyFailsForWrongHash()
127
127
var hashWithLocations = new ContentHashWithSizeAndLocations (
128
128
hash ,
129
129
size : 42 ,
130
- new MachineLocation [ ] { new MachineLocation ( "" ) } ) ;
130
+ new MachineLocation [ ] { new MachineLocation ( @"grpc://fun.com:123" ) } ) ;
131
131
132
132
mockFileCopier . CopyToAsyncResult = CopyFileResult . SuccessWithSize ( 42 ) ;
133
133
var result = await distributedCopier . TryCopyAndPutAsync (
@@ -152,7 +152,7 @@ public async Task CopyRetries(int retries)
152
152
var ( distributedCopier , mockFileCopier ) = CreateMocks ( FileSystem , directory . Path , TimeSpan . Zero , retries ) ;
153
153
await using var _ = await distributedCopier . StartupWithAutoShutdownAsync ( context ) ;
154
154
155
- var machineLocations = new MachineLocation [ ] { new MachineLocation ( "" ) } ;
155
+ var machineLocations = new MachineLocation [ ] { new MachineLocation ( @"grpc://fun.com:123" ) } ;
156
156
157
157
var hash = ContentHash . Random ( ) ;
158
158
var hashWithLocations = new ContentHashWithSizeAndLocations (
@@ -190,7 +190,7 @@ public async Task CopyRetriesWithRestrictions(int retries)
190
190
maxRetryCount : retries + 1 ) ;
191
191
await using var _ = await distributedCopier . StartupWithAutoShutdownAsync ( context ) ;
192
192
193
- var empty = new MachineLocation ( " ") ;
193
+ var empty = new MachineLocation ( @"grpc://fun.com:123 ") ;
194
194
var machineLocations = new [ ] { empty , empty , empty , empty , empty } ;
195
195
196
196
var hash = ContentHash . Random ( ) ;
@@ -245,7 +245,7 @@ public async Task CopyWithDestinationPathError(int retries)
245
245
var ( distributedCopier , mockFileCopier ) = CreateMocks ( FileSystem , directory . Path , TimeSpan . FromMilliseconds ( ( 10 ) ) , retries ) ;
246
246
await using var _ = await distributedCopier . StartupWithAutoShutdownAsync ( context ) ;
247
247
248
- var machineLocations = new MachineLocation [ ] { new MachineLocation ( " ") , new MachineLocation ( " ") } ;
248
+ var machineLocations = new MachineLocation [ ] { new MachineLocation ( @"grpc://fun.com:123 ") , new MachineLocation ( @"grpc://fun.com:123 ") } ;
249
249
250
250
var hash = ContentHash . Random ( ) ;
251
251
var hashWithLocations = new ContentHashWithSizeAndLocations (
@@ -306,7 +306,7 @@ public class MockFileCopier : IRemoteFileCopier
306
306
#pragma warning restore 649
307
307
public CopyFileResult [ ] CustomResults ;
308
308
309
- public MachineLocation GetLocalMachineLocation ( AbsolutePath cacheRoot ) => new MachineLocation ( " ") ;
309
+ public MachineLocation GetLocalMachineLocation ( AbsolutePath cacheRoot ) => new MachineLocation ( @"grpc://fun.com:123 ") ;
310
310
311
311
/// <inheritdoc />
312
312
public Task < CopyFileResult > CopyToAsync ( OperationContext context , ContentLocation sourceLocation , Stream destinationStream , CopyOptions options )
0 commit comments