File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ public void IHttpActivityFeatureIsPopulated()
109109 var activityFeature = context . HttpContext . Features . Get < IHttpActivityFeature > ( ) ;
110110 Assert . NotNull ( activityFeature ) ;
111111 Assert . NotNull ( activityFeature . Activity ) ;
112- Assert . Equal ( HostingApplicationDiagnostics . ActivityName , activityFeature . Activity . DisplayName ) ;
112+ Assert . Equal ( HostingApplicationDiagnostics . ActivityName , activityFeature . Activity . OperationName ) ;
113+ Assert . Equal ( "HTTP" , activityFeature . Activity . DisplayName ) ;
113114 var initialActivity = Activity . Current ;
114115
115116 // Create nested dummy Activity
@@ -156,7 +157,8 @@ public void IHttpActivityFeatureNotUsedFromFeatureCollection()
156157 var contextFeature = context . HttpContext . Features . Get < IHttpActivityFeature > ( ) ;
157158 Assert . NotNull ( contextFeature ) ;
158159 Assert . NotNull ( contextFeature . Activity ) ;
159- Assert . Equal ( HostingApplicationDiagnostics . ActivityName , contextFeature . Activity . DisplayName ) ;
160+ Assert . Equal ( HostingApplicationDiagnostics . ActivityName , contextFeature . Activity . OperationName ) ;
161+ Assert . Equal ( "HTTP" , contextFeature . Activity . DisplayName ) ;
160162
161163 Assert . NotEqual ( overridenFeature , contextFeature ) ;
162164 }
You can’t perform that action at this time.
0 commit comments