Comments (4)
this tests the logger file max size. it's a simple string parser, should not fail.
debug the test.
- W
Sent from my iPad
On Feb 1, 2015, at 04:00, Subhendu Ghosh [email protected] wrote:
I am trying to run test on Fedora 21 with gcc (GCC) 4.9.2. The Following test is failing:
Test name: ConfigTest::testMaxSize
equality assertion failedExpected: 15360
Actual : 150
Failures !!!
Run: 201 Failure total: 1 Failures: 1 Errors: 0—
Reply to this email directly or view it on GitHub.
from cppagent.
I tried debugging. Seems like the mConfig->loadConfig(logger)
is not loading the config properly or having trouble flushing the old value. I tried changing the istringstream logger("logger_config {"max_size = 150\n"}\n");
max_size value. Despite different consecutive sizes of 15K , 15M , 15G It always tested with the first value set as max_size. So max_size is always 150. Therefore the first test for 150 passes but rest for 15K , 15M, 15G fails.
from cppagent.
This is because of some experimental code I just added to monitor the config files and do a warm start if they change. I do not roll the logger on a warm start. This has nothing to do with fedora.
Change the test to create a new config object for each test. This will fix the issue.
This was a quick test I put in for a user to support auto agent configuration.
Sent from my iPhone
On Feb 1, 2015, at 11:16, Subhendu Ghosh [email protected] wrote:
I tried debugging. Seems like the mConfig->loadConfig(logger) is not loading the config properly or having trouble flushing the old value. I tried changing the istringstream logger("logger_config {"max_size = 150\n"}\n"); max_size value. Despite different consecutive sizes of 15K , 15M , 15G It always tested with the first value set as max_size. So max_size is always 150.
—
Reply to this email directly or view it on GitHub.
from cppagent.
Fixed test and recreated agent configuration object each time.
from cppagent.
Related Issues (20)
- Unclear logging at startup when using Docker HOT 1
- Ubuntu 20.04: Error building test package HOT 25
- * uuid command handling in agent not as expected HOT 19
- AgentConfiguration::monitorThread message reports wrong number of seconds
- Crash when editing device dataitem in DeviceModel HOT 4
- XML Schema validation with lxml HOT 1
- Simple WebSockets for subscriptions HOT 3
- Add validation transform to support 2.5 quality attribute for observations.
- MQTT INGRESS connection not working on V2.3.0.4 HOT 5
- How to set initial dataitem value in the stream HOT 2
- Agent Reconnecting to Broker repeatedly HOT 20
- Condition ID format and example not matching on Agent version 2.3? HOT 25
- DELETEing an already deleted asset responds with old asset value; expected MTConnectError HOT 10
- Check why asset counts are not being reported in agent HOT 3
- json schema for agent cfg HOT 8
- Add pretty handling to assets
- Query Regarding FlatMode Configuration in MTConnect CPP Agent HOT 9
- Add header to Asset documents in 2.5
- Agent is suddenly closing itself HOT 22
- Cannot start service when cfg file has different name than default HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cppagent.