From da0febcc07637e29bb8d226b92d76644c719c5d3 Mon Sep 17 00:00:00 2001 From: Andrea Lamparelli Date: Sat, 23 Mar 2024 01:28:20 +0100 Subject: [PATCH] Fix test --- tests/Kiota.Builder.Tests/Writers/Go/CodeMethodWriterTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Kiota.Builder.Tests/Writers/Go/CodeMethodWriterTests.cs b/tests/Kiota.Builder.Tests/Writers/Go/CodeMethodWriterTests.cs index 59561012b5..8e936f1844 100644 --- a/tests/Kiota.Builder.Tests/Writers/Go/CodeMethodWriterTests.cs +++ b/tests/Kiota.Builder.Tests/Writers/Go/CodeMethodWriterTests.cs @@ -1206,7 +1206,7 @@ public async Task WritesRequestGeneratorBodyForScalarCollection() Assert.Contains("requestInfo.AddQueryParameters(", result); Assert.Contains("requestInfo.AddRequestOptions(", result); Assert.Contains("cast := make([]interface{}, ", result); - Assert.Contains("cast[i] = v, ", result); + Assert.Contains("cast[i] = v", result); Assert.Contains("requestInfo.SetContentFromScalarCollection(ctx, m.BaseRequestBuilder.RequestAdapter", result); Assert.Contains("return requestInfo, nil", result); AssertExtensions.CurlyBracesAreClosed(result); @@ -1307,6 +1307,7 @@ public async Task WritesRequestGeneratorBodyForParsableCollection() Assert.Contains("if c.Q != nil", result); Assert.Contains("requestInfo.AddQueryParameters(", result); Assert.Contains("requestInfo.AddRequestOptions(", result); + Assert.Contains("cast[i] =", result); Assert.Contains("requestInfo.SetContentFromParsableCollection(ctx, m.BaseRequestBuilder.RequestAdapter", result); Assert.Contains("return requestInfo, nil", result); AssertExtensions.CurlyBracesAreClosed(result);