Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 3b56e2b

Browse files
committed
fix string interpolation
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
1 parent 3df2973 commit 3b56e2b

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/Bindle/BindleClient.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Collections.Specialized;
43
using System.IO;
54
using System.Linq;
65
using System.Net;
76
using System.Net.Http;
8-
using System.Net.Http.Headers;
97
using System.Threading.Tasks;
108
using Tomlyn;
119
using Tomlyn.Syntax;

tests/Bindle.IntegrationTests/Integration.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class Integration : IClassFixture<IntegrationFixture>
2323
[Fact]
2424
public async Task CanFetchInvoice()
2525
{
26-
var client = new BindleClient($"host=${DEMO_SERVER_URL}");
26+
var client = new BindleClient($"host={DEMO_SERVER_URL}");
2727
var invoice = await client.GetInvoice("your/fancy/bindle/0.3.0");
2828
Assert.Equal("1.0.0", invoice.BindleVersion);
2929
Assert.Equal("your/fancy/bindle", invoice.Bindle.Name);
@@ -37,15 +37,15 @@ public async Task CanFetchInvoice()
3737
[Fact]
3838
public async Task CanQueryInvoices()
3939
{
40-
var client = new BindleClient($"host=${DEMO_SERVER_URL}");
40+
var client = new BindleClient($"host={DEMO_SERVER_URL}");
4141
var matches = await client.QueryInvoices(queryString: "my");
4242
Assert.True(matches.Invoices.All(i => i.Bindle.Name.Contains("my")));
4343
}
4444

4545
[Fact]
4646
public async Task CanFetchYankedInvoices()
4747
{
48-
var client = new BindleClient($"host=${DEMO_SERVER_URL}");
48+
var client = new BindleClient($"host={DEMO_SERVER_URL}");
4949
var invoice = await client.GetInvoice("yourbindle/0.1.1", IncludeYanked);
5050
Assert.Equal("1.0.0", invoice.BindleVersion);
5151
Assert.Equal("yourbindle", invoice.Bindle.Name);
@@ -55,7 +55,7 @@ public async Task CanFetchYankedInvoices()
5555
[Fact]
5656
public async Task CanCreateInvoices()
5757
{
58-
var client = new BindleClient($"host=${DEMO_SERVER_URL}");
58+
var client = new BindleClient($"host={DEMO_SERVER_URL}");
5959
var invoice = new Invoice
6060
{
6161
BindleVersion = "1.0.0",
@@ -98,7 +98,7 @@ public async Task CanCreateInvoices()
9898
[TestPriority(10)]
9999
public async Task CanYankInvoice()
100100
{
101-
var client = new BindleClient($"host=${DEMO_SERVER_URL}");
101+
var client = new BindleClient($"host={DEMO_SERVER_URL}");
102102
await client.YankInvoice("your/fancy/bindle/0.3.0");
103103
await Assert.ThrowsAsync<BindleYankedException>(async () =>
104104
{
@@ -111,15 +111,15 @@ await Assert.ThrowsAsync<BindleYankedException>(async () =>
111111
[Fact]
112112
public async Task CanFetchParcel()
113113
{
114-
var client = new BindleClient($"host=${DEMO_SERVER_URL}");
114+
var client = new BindleClient($"host={DEMO_SERVER_URL}");
115115
var parcel = await client.GetParcel("mybindle/0.1.0", "f7f3b33707fb76d208f5839a40e770452dcf9f348bfd7faf2c524e0fa6710ed6");
116116
Assert.Equal("Fie on you Gary", await parcel.ReadAsStringAsync());
117117
}
118118

119119
[Fact]
120120
public async Task CanCreateParcel()
121121
{
122-
var client = new BindleClient($"host=${DEMO_SERVER_URL}");
122+
var client = new BindleClient($"host={DEMO_SERVER_URL}");
123123
await client.CreateParcel("mybindle/0.1.0", "460d5965e4d1909e8c7a3748a414956b7038ab5fd79937c9fcb2b214e6b0160a", "The front fell off");
124124
var fetched = await client.GetParcel("mybindle/0.1.0", "460d5965e4d1909e8c7a3748a414956b7038ab5fd79937c9fcb2b214e6b0160a");
125125
Assert.Equal("The front fell off", await fetched.ReadAsStringAsync());
@@ -128,7 +128,7 @@ public async Task CanCreateParcel()
128128
[Fact]
129129
public async Task CanListMissingParcels()
130130
{
131-
var client = new BindleClient($"host=${DEMO_SERVER_URL}");
131+
var client = new BindleClient($"host={DEMO_SERVER_URL}");
132132
var resp = await client.ListMissingParcels("mybindle/0.3.0");
133133
Assert.Contains(resp.Missing, (label) => label.Sha256 == "e1706ab0a39ac88094b6d54a3f5cdba41fe5a901");
134134
Assert.DoesNotContain(resp.Missing, (label) => label.Sha256 == "f7f3b33707fb76d208f5839a40e770452dcf9f348bfd7faf2c524e0fa6710ed6");

0 commit comments

Comments
 (0)