Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
test case fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
TriptiTripathi1234 committed Sep 19, 2022
1 parent 933b506 commit e249e33
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.hypertrace.traceenricher.enrichedspan.constants.v1.Protocol;
import org.hypertrace.viewgenerator.api.SpanEventView;
import org.hypertrace.viewgenerator.generators.ViewGeneratorState.TraceState;
import org.hypertrace.viewgenerator.generators.utils.TestUtilities;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -140,15 +141,7 @@ public void testGetRequestUrl() {

@Test
public void testSpanEventViewGen_HotrodTrace() throws IOException {
URL resource =
Thread.currentThread().getContextClassLoader().getResource("StructuredTrace-Hotrod.avro");

SpecificDatumReader<StructuredTrace> datumReader =
new SpecificDatumReader<>(StructuredTrace.getClassSchema());
DataFileReader<StructuredTrace> dfrStructuredTrace =
new DataFileReader<>(new File(resource.getPath()), datumReader);
StructuredTrace trace = dfrStructuredTrace.next();
dfrStructuredTrace.close();
StructuredTrace trace = TestUtilities.getSampleHotRodTrace();

TraceState traceState = new TraceState(trace);
verifyGetExitSpanToApiEntrySpan_HotrodTrace(trace, traceState);
Expand Down

0 comments on commit e249e33

Please sign in to comment.