Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(connector): only provider should update connector #1086

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@
// Assert
result.Should().BeNull();
}

Check warning

Code scanning / CodeQL

Dereferenced variable may be null Warning test

Variable
result
may be null at this access as suggested by
this
null check.
[Fact]
public async Task GetConnectorUpdateInformation_ReturnIsProviderTrue()
{
Expand All @@ -442,9 +442,12 @@

// Assert
result.Should().NotBeNull();
result?.IsProviderCompany.Should().BeTrue();
if (result != null)
{
result.IsProviderCompany.Should().BeTrue();
}
dhiren-singh-007 marked this conversation as resolved.
Show resolved Hide resolved
}

Fixed Show fixed Hide fixed
Fixed Show fixed Hide fixed
[Fact]
public async Task GetConnectorUpdateInformation_ReturnIsProviderFalse()
{
Expand All @@ -456,7 +459,10 @@

// Assert
result.Should().NotBeNull();
result?.IsProviderCompany.Should().BeFalse();
if (result != null)
{
result.IsProviderCompany.Should().BeFalse();
}
dhiren-singh-007 marked this conversation as resolved.
Show resolved Hide resolved
}

#endregion
Expand Down
Loading